package com.ellricky.baselib.adapter;


import android.widget.TextView;

import com.andr.common.ui.adapter.BaseRecyclerAdapter;
import com.andr.common.ui.adapter.SmartViewHolder;
import com.ellricky.baselib.R;
import com.ellricky.baselib.entity.IdNameEntity;

public class SearchAdapter extends BaseRecyclerAdapter<IdNameEntity> {

    public SearchAdapter() {
        super(R.layout.base_adapter_search);
    }

    @Override
    protected void onBindViewHolder(SmartViewHolder vh, IdNameEntity idNameEntity, int i) {
        TextView tvName = vh.itemView.findViewById(R.id.name);
        tvName.setText(idNameEntity.getName());
    }
}
